import axios from '@/js/util/api.request.js';
import config from "@/js/util/config.js";
// 修改项目
export const updateTemplate = (data) => {
    return axios.request({
        baseURL: config.getServiceURL('scene'),
        url: `service/scene/template/update`,
        method: 'post',
        type: 'formData',
        data
    });
};

// 新增项目
export const insertTemplate = (data) => {
    return axios.request({
        baseURL: config.getServiceURL('scene'),
        url: `service/scene/template/insert`,
        method: 'post',
        type: 'formData',
        data
    });
};

// 获取字体列表
export const getFontList = (data) => {
    return axios.request({
        baseURL: config.getServiceURL('scene'),
        url: `service/scene/resource/fonts/list`,
        method: 'post',
        data
    });
};

// 获取字体列表
export const getTemplateList = (data) => {
    return axios.request({
        baseURL: config.getServiceURL('scene'),
        url: `service/scene/template/list`,
        method: 'post',
        data
    });
};